//
//  LLGeneralButtonCellModel.m
//  TaoTuo
//
//  Created by admin on 2019/11/8.
//  Copyright © 2019 admin. All rights reserved.
//

#import "LLGeneralButtonCellModel.h"

@implementation LLGeneralButtonCellModel

+ (id)setModelWithImageName:(NSString * _Nullable)imageName
                      title:(NSString *)title
    contentAttributedString:(NSMutableAttributedString * _Nullable)contentAttributedString
       rightNormalImageName:(NSString * _Nullable)rightNormalImageName
     rightSelectedImageName:(NSString * _Nullable)rightSelectedImageName
                 clickBlock:(ClickActinBlock _Nullable)clickBlock
                   isSelect:(BOOL)isSelect
{
    return [self setModelWithImageName:imageName title:title contentAttributedString:contentAttributedString detailAttributedString:nil rightNormalImageName:rightNormalImageName rightSelectedImageName:rightSelectedImageName clickBlock:clickBlock isSelect:isSelect];
}

+ (id)setModelWithImageName:(NSString * _Nullable)imageName
                      title:(NSString *)title
    contentAttributedString:(NSMutableAttributedString * _Nullable)contentAttributedString
     detailAttributedString:(NSMutableAttributedString * _Nullable)detailAttributedString
       rightNormalImageName:(NSString * _Nullable)rightNormalImageName
     rightSelectedImageName:(NSString * _Nullable)rightSelectedImageName
                 clickBlock:(ClickActinBlock _Nullable)clickBlock
                   isSelect:(BOOL)isSelect
{
    LLGeneralButtonCellModel *model = [self setModelWithImageName:imageName title:title contentAttributedString:contentAttributedString detailAttributedString:detailAttributedString];
    model.rightNormalImageName = rightNormalImageName;
    model.rightSelectedImageName = rightSelectedImageName;
    model.clickBlock = clickBlock;
    model.isSelect = isSelect;
    return model;
}


@end
